﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Rose.Models;
using Rose.Helper;
using System.Text.RegularExpressions;

namespace Rose.Models
{
    public partial class Article
    {
        public string DecodeContent
        {
           get
           {
            return (HttpContext.Current.Server.HtmlDecode(Content));
           }
        }
        public string EncodeTitle
        {
            get
            {
                return HttpContext.Current.Server.HtmlEncode(Title);
            }
        }
    }

    public class ArticleModel
    {
        public string Content { get; set; }
        public string Title { get; set; }
        public string CreateTime { get; set; }
        public int CommentCount { get; set; }
        public int ShareCount { get; set; }
        public string Id { get; set; }
        public string Author { get; set; }
        public int Hit { get; set; }
        public int  IsOnlyForFriend { get; set; }
      
    }

    

    public class ArticleAbstractModel
    {
        public string Content { get; set; }//limit in 100 zi
        public string Title { get; set; }
        public string CreateTime { get; set; }
        public int CommentCount { get; set; }
        public int Hit { get; set; }
        public int ShareCount { get; set; }
        public string ImagePath { get; set; }
        public string UserId { get; set; }
        public string Id { get; set; }
    }
}


